import logging


def get_token():
    from api.login_api import IHRMLoginAPI
    data = {"mobile": "13800000002", "password": "123456"}
    r = IHRMLoginAPI.login(data)
    token = r.json().get('data')
    logging.info(f'获取 token: {token}')
    return token